package com.yl.auth.controller;


import com.yl.auth.model.vo.QuanxianVo;
import com.yl.auth.service.QuanxianService;
import com.yl.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ln
 * @since 2023-06-29
 */
@Api(tags = "权限管理")
@RestController
@RequestMapping("/admin/auth/quanxian")
public class QuanxianController {

    @Autowired
    private QuanxianService quanxianService;

    @ApiOperation("权限查询")
    @GetMapping("/list")
    public Result list(){
        List<QuanxianVo> list = quanxianService.gitQuanXianList();
        return Result.ok(list);
    }
}

